	<?php
	// CALL FROM CONFIG
	$plugins = $this->requestAction(array('controller'=>'private','action'=>'getplugintemplates'));
	if (!empty($plugins))
	{
	foreach($plugins as $plugin)
	{
	echo "<tr>";
	echo "<td>".$plugin['mctemplateplugin']['name']."</td>";
	echo "<td>".$plugin['mctemplateplugin']['url']."</td>";
	echo "<td>".$plugin['mctemplateplugin']['config']."</td>";
	echo "<td><a class='ui-icon ui-icon-pencil' title='Edit' href='#' onclick='edittemplateplugin(".json_encode(array($plugin['mctemplateplugin']['id'],$plugin['mctemplateplugin']['name'],$plugin['mctemplateplugin']['url'],$plugin['mctemplateplugin']['config'])).");'></a></td>";
	echo "<td>".$js->link('Del',array('controller'=>'private','action'=>'delplugintemplate',$plugin['mctemplateplugin']['id']),array('title'=>'Delete','class'=>'ui-icon ui-icon-trash','update'=>'#tableplugins','confirm'=>__('Are you sure ?',true)))."</td>";
	echo "</tr>";
	}
	}
	echo $this->Js->writeBuffer();
	?>
